import request from '@/utils/request'
import { base_url } from '@/api/config'

export function getQuotaList() {
  return request({
    url: base_url + '/quota/list',
    method: 'get'
  })
}

export function addQuota(data) {
  return request({
    url: base_url + '/quota/add',
    method: 'post',
    data
  })
}

export function delQuota(data) {
  return request({
    url: base_url + '/quota/delete',
    method: 'post',
    data
  })
}

export function updateQuota(data) {
  return request({
    url: base_url + '/quota/update',
    method: 'post',
    data
  })
}

export function getSingleQuota(data) {
  return request({
    url: base_url + '/quota/get',
    method: 'post',
    data
  })
}

export function findDeviceQuotaPage(data) {
  return request({
    url: base_url + '/quota/device-quota-page',
    method: 'post',
    data
  })
}

export function findQuotaAlarmPage(data) {
  return request({
    url: base_url + '/quota/quota-alarm-page',
    method: 'post',
    data
  })
}
